home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / kvik / text / posting2 / text0000.txt < prev   
Encoding:
Text File  |  1995-02-22  |  3.3 KB  |  75 lines

  1.  
  2. In the previous article I introduced the principles of kvikkalkul to the
  3. world. So far the Swedish government hasn't bombed the location in Finland
  4. where the anon server is located and they didn't even arrest Swedish people
  5. who had the document on their computers.
  6.  
  7. First there were questions about the name of the language. It's indeed not
  8. Swedish but rather Norwegian. Well, there were some Norwegians in the team
  9. that developed the language. The name kvikkalkul was believed to be a pun
  10. on Plankalkuel, the first high level language that was developed by Konrad
  11. Zuse. Kvikkalkul has hardly anything in common with Plankalkuel, but both
  12. were high-level languages and the only high-level languages in the world at
  13. that time.
  14.  
  15. As far as I know kvikkalkul was developed for the Swedish Nuclear Arms
  16. program that never became reality. In 1957 everyone I spoke still believed
  17. that Sweden would have nukes in less than two years. I don't know for sure
  18. that Sweden had a nuclear arms program, but the rumors I heard suggested
  19. that. It would explain much of the secrecy around kvikkalkul. Another
  20. explanation was that if the Russians ever stole a program tape, they would
  21. think it was encrypted text or downright gibberish and they would never
  22. suspect it to be software. Well, Russians, if you have tapes with things
  23. like .5 (: ,33 -) :8 you have Swedish source code!
  24.  
  25. My kvikkalkul handbook from 1956 shows one construct that was removed from
  26. the language by the time I started in 1957. It was the probabilistic jump.
  27.  
  28. The statement
  29. -) :4
  30.  
  31. would always jump, the statement
  32.  
  33. .9 ): ,5 -) :4
  34.  
  35. would only jump if register 9 was at least 1/2, The statement
  36.  
  37. ,333333 -) :4
  38.  
  39. would jump with a probability of 1/3. This particular form was deleted.
  40. Now comes the most interesting part. If the number in front of the -) was
  41. negative, the jump would be taken in the reverse direction. It was as if
  42. there was a jump with the corresponding positive probability at the
  43. destination label of the jump and that jump jumped to the location of the
  44. jump statement. Sounds like COME FROM, doesn't it? A pity they didn't keep
  45. it :-(
  46.  
  47. When they deleted the probabilistic jump, they added the random number
  48. channel, so you could do
  49.   (3) ): ,0 -) :4 
  50. to jump with a probability of 1/2. No substitute for COME FROM though. As
  51. the random number channel was unreliable, one would use
  52.  
  53.   :4 -) 314
  54.   :0 -) 1400
  55.   -) :4
  56.   1400:
  57.   :4 -) 2000
  58.   .0 ): ,0 -) :4
  59.  
  60. This is: call subroutine 314 to compute a pseudorandom number and to 2000
  61. if the result in register 0 is greater than or equal to 0.
  62.  
  63. Back in 1957 computers were rare and extremely expensive.  We were taught by
  64. an instructor who had a really funny explanation of the word 'transistor'
  65. (the computer that we used was one of the first transistor computers). He
  66. said, "You know, transistor means small. A transistor radio is a small radio
  67. that is not as powerful as a real radio, but that you can take with you when
  68. traveling. SABINA is a transistor computer. It is small, not as powerful as
  69. a real computer and we will take it with us on our submarines." Operating a
  70. computer was comparable in cost to flying an airplane. You wouldn't make
  71. a flight in a bomber for fun and neither would you run any program for fun. 
  72. Playing games with the computer was just UNTHINKABLE. One would only compile
  73. and run programs that were approved by one's supervisor. 
  74.  
  75.